package com.yuhao.servicea.config;

import com.netflix.loadbalancer.IRule;
import org.springframework.cloud.netflix.ribbon.RibbonClient;
import org.springframework.context.annotation.Bean;

@RibbonClient(name="serviceb", configuration=RBConfig.class)
public class RBConfig {

    @Bean
    public IRule getRule(){
        return new MyProbabilityRandomRule();
    }

}
